// Replication Code

// Elliott Ash and W. Bentley MacLeod
// Intrinsic Motivation in Public Service: Theory and Evidence from State Supreme Courts
// Journal of Law and Economics, Noveber 2015

set more off

// IAC and Term Length Effects, Aggregate
do iac-term-1

// IAC and Term Length Effects, Interacted with Discretion Rule
do iac-term-2-disc

// IAC effect figures
do iac-figs

// IAC effects for bottom-five cases
do iac-bott

// IAC effects for top-five cases
do iac-top

// Electoral Cycle Effects
do elect-cycle

// Electoral Cycle Effect Figures
do elect-figs

// Salary Effects, Aggregate
do salary-1

// Salary Effects, by Discretion Level
do salary-2-disc

// Salary Effects, by Retention System
do salary-3-retain